package com.fenghongzhang.a1903;

import android.content.Context;
import android.widget.ImageView;

import com.bumptech.glide.Glide;
import com.bumptech.glide.request.RequestOptions;

//可维护
public class ImageLoader {

    public static void loading(Context context, String url, ImageView imageView){
        Glide.with(context).load(url).into(imageView);
//        Pa.with().load().into();
    }

    public static void circleloading(Context context, String url, ImageView imageView){
        Glide.with(context).load(url).apply(new RequestOptions().circleCrop()).into(imageView);
//        Pa.with().load().into();
    }

    public static void oversize(Context context, String url, ImageView imageView,int width,int height){
        Glide.with(context).load(url).override(width,height).into(imageView);
    }

}
